﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WorkShop.Controllers
{
    public class HelloWorldController : Controller
    {
        //
        // GET: /HelloWorld/

        public ActionResult Index()
        {
            return View();
        }

        //public string Index()
        //{
        //    //return "This is my <b>default</b> action...";
        //    HelloWorldController Hell = new HelloWorldController();
        //    return Hell.Welcome("BadBoy", 2);
        //}

        //public string Welcome()
        //{
        //    return "This is the welcome action method";
        //}

        public ActionResult Welcome(string name, int numTimes = 1)
        {
            ViewBag.Message = "Hello" + name;
            ViewBag.Numtimes = numTimes;

            return View();
        }

    }
}
